
<?php if(!empty($banners)): ?><?php slot('slides') ?> <div id="slide">
    <div class="slides_container"><?php foreach($banners as $banner): ?><?php if(!$banner['file']) continue; ?>
      <div>
        <a href="<?php echo $banner['link'] ?>"><img src="/web/uploads<?php echo $banner['file'] ?>" width="962" height="324" alt="" /></a>
      </div><?php endforeach; ?>
    </div>
    <div class="bar">
      <div class="left-bar"></div>
      <div id="content-bar">
        <ul class="buttons"><?php foreach($banners as $j => $banner): ?><?php if(!$banner['file']) continue; ?>
          <?php if(count($banners) == 1): ?><li class="current" position="<?php echo $j ?>"><a href="#"><?php echo strtoupper($banner['name']) ?></a></li><?php else: ?><li position="<?php echo $j ?>"><a href="#"><?php echo $banner['name'] ?></a></li><?php endif; ?><?php endforeach; ?>
        </ul>
        <div class="slide-description">
          <div id="reserved" style="display: none">
            <?php foreach($banners as $j => $banner): ?>
              <div id="banner-description-<?php echo $j+1 ?>">
                <small>Pildil:</small> <?php echo $banner['flash_vars'] ?>
              </div>
            <?php endforeach ?>
          </div>
          <p id="description-place"><?php if(isset($banners[0])): ?><small>Pildil:</small> <?php echo $banners[0]['flash_vars'] ?><?php endif ?></p>
        </div>
        <div class="cls"></div>
      </div>
      <div class="right-bar"></div>
      <div class="cls"></div>
    </div>
  </div><?php end_slot() ?><?php endif; ?>